class ButStart extends egret.Sprite{
	public startBut:egret.Bitmap;//开始按钮
	public anewBut:egret.Bitmap;//重新开始
	public dieTitle:egret.TextField;//死亡提示
	public constructor() {
		super();
	};
	public init() {
		// 开始按钮
		this.startBut =  new egret.Bitmap();
		this.startBut.texture = RES.getRes("start_png");
		this.startBut.width = this.startBut.texture.textureWidth / 3;
		this.startBut.height = this.startBut.texture.textureHeight / 3;
		this.startBut.x = (375 - this.startBut.width) / 2;
		this.startBut.y = 400;
		this.startBut.touchEnabled = true;
		this.addChild(this.startBut);
	};
	// 再来一局
	public anew() {
		// this.dieTitle = new egret.TextField();
		// this.dieTitle.size=20;
		// this.dieTitle.x = 150;
		// this.dieTitle.y=200;
		// this.dieTitle.textColor=0xff0000;
		// this.dieTitle.visible=false;
		// this.addChild(this.dieTitle);
		this.anewBut =  new egret.Bitmap();
		this.anewBut.texture = RES.getRes("anew_png");
		this.anewBut.width = this.anewBut.texture.textureWidth / 3;
		this.anewBut.height = this.anewBut.texture.textureHeight / 3;
		this.anewBut.x = (375 - this.anewBut.width) / 2;
		this.anewBut.y = 400;
		this.anewBut.touchEnabled = true;
		this.addChild(this.anewBut);
	}
}